export const dateTime = value => {
	let oDate = null;
	if (value === null) {
		return '';
    }
	if (value > 9999999999) {
        oDate = new Date(value);
        console.log(oDate);
	} else {
        oDate = new Date(value * 1000);
	}
	let oMonth = oDate.getMonth() + 1;
	function toDou(n) {
		return n < 10 ? '0' + n : '' + n;
	}
	return (
		oDate.getFullYear() +
		'-' +
		toDou(oMonth) +
		'-' +
		toDou(oDate.getDate()) +
		' ' +
		toDou(oDate.getHours()) +
		':' +
		toDou(oDate.getMinutes()) +
		':' +
		toDou(oDate.getSeconds())
	);
};
